// JS内置类型
let data: Date = new Date()
let reg: RegExp = new RegExp(/\w/)
let err: Error = new Error('错误了')
let xhr: XMLHttpRequest = new XMLHttpRequest()

// HTML(元素名称)Element  Element    HTMLElement
let div: NodeListOf<HTMLDivElement | HTMLElement> = document.querySelector('div')

// Bom
let local: Storage = localStorage
let promise: Promise<string> = new Promise((resolve, reject) => resolve('111'))
promise.then((res) => {
    res.indexOf('a')
})
let cookie:string = document.cookie